// pages/ophotos/ophotos.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    pic_list:[
      {"content": "测试", "updatetime": "2018-12-12","url": ""},
      {"content": "测试","updatetime": "2018-12-12","url": ""}
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var thatObj =this;
    wx.request({
      url: 'https://v.juhe.cn/joke/img/list.php?key=2ca3e19979fadf2279ac6a036669f5ad&page=1&pagesize=30&sort=asc&time=1418745237', 
      success: function (res) {
        // console.log(res.data.result.data)
        thatObj.setData(          {
            pic_list: res.data.result.data
          })
      }
    })
  },
})